package com.fuershiye.woman.monitor.service;

import java.util.List;

import com.fuershiye.woman.monitor.model.Unit;

/**
 * @author yongyongdong
 *
 */
public interface UnitService {

    public void save(Unit unit);
    
    /**
     * name 为空查询所有,不为空模糊查询
     * status 0||null:全部; 1:过滤掉已删除的
     * @return
     */
    public List<Unit> list(String name, Integer status);
    
    public Unit get(Long id);

    public void delete(Long id);
    
}
